FROM alpine:latest

LABEL maintainer="Zheng Qijun <zhengqijun0121@qq.com>"

RUN sed -i 's/dl-cdn.alpinelinux.org/mirror.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && apk update && \
    apk add --no-cache -U make git build-base perl perl-dev lua5.4 lua5.4-dev python3 python3-dev ruby \
    	ruby-dev libx11-dev libxt-dev gtk+3.0-dev ncurses-dev dpkg && \
    rm -rf /var/cache/apk/* && \
    echo 'root:111111' | chpasswd && \
    git config --global user.name 'zhengqijun' && \
    git config --global user.email 'zhengqijun0121@qq.com' && \
    ln -s /usr/include/lua5.4 /usr/include/lua && \
    ln -s /usr/lib/liblua-5.4.so.0 /usr/lib/liblua.so && \
    git clone https://gitee.com/zhengqijun/vim ~/Workspace/vim

#    ./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-python3interp=yes \
#        --with-python3-config-dir=$(python3-config --configdir) --enable-perlinterp=yes --enable-luainterp=yes \
#        --enable-gui=gtk3 --enable-cscope --with-x --enable-fail-if-missing --prefix=/usr/local && \
#    make -j4

ENV SHELL /bin/sh
ENV HOME /root/Workspace/vim
ENV USER root
ENV USERNAME root

WORKDIR $HOME

# ENTRYPOINT ["/bin/sh"]

EXPOSE 22

# EOF

